using System;
using UnityEngine;

[Serializable]
public class SpaunKillEvent : GameplayEvent
{
	public float maxTime = 5f;

	public bool IfEvent(KillInfo newKill)
	{
		if (newKill.timeOfRespawn > 0f && Time.unscaledTime - newKill.timeOfRespawn <= maxTime)
		{
			return true;
		}
		return false;
	}
}
